using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._JoinsandRelates
{
    /// <summary>
    /// <para>Remove Join</para>
    /// <para>Removes a join from a feature layer or table view.</para>
    /// <para>从要素图层或表视图中移除连接。</para>
    /// </summary>    
    [DisplayName("Remove Join")]
    public class RemoveJoin : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RemoveJoin()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_layer_or_view">
        /// <para>Layer Name or Table View</para>
        /// <para>The layer or table view from which the join will be removed.</para>
        /// <para>将从中移除连接的图层或表视图。</para>
        /// </param>
        public RemoveJoin(object _in_layer_or_view)
        {
            this._in_layer_or_view = _in_layer_or_view;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Remove Join";

        public override string CallName => "management.RemoveJoin";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_layer_or_view, _join_name, _out_layer_or_view];

        /// <summary>
        /// <para>Layer Name or Table View</para>
        /// <para>The layer or table view from which the join will be removed.</para>
        /// <para>将从中移除连接的图层或表视图。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Layer Name or Table View")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_layer_or_view { get; set; }


        /// <summary>
        /// <para>Join</para>
        /// <para>The join to be removed.</para>
        /// <para>要删除的联接。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Join")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _join_name { get; set; } = null;


        /// <summary>
        /// <para>Layer With Join Removed</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Layer With Join Removed")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_layer_or_view { get; set; }


        public RemoveJoin SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}